package com.mive.mapper;

import com.mive.entity.Author;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthorMapper {

    int delete(Long id);

    void insert(Author author);

    void update(Author author);

    Author getAuthor(Long id);

    List<Author> getAll();
}
